package com.peanutplan.blog.service;


import com.github.pagehelper.PageInfo;
import com.peanutplan.blog.model.vo.SensitiveWord;
import com.peanutplan.blog.model.vo.SensitiveWordExample;

/**
 * 
 * @author motisy
 *
 */
public interface ISensitiveWordsService {

    /**
     * 保存对象
     * @param sensitiveWordVo
     */
    void insertSensitiveWord(SensitiveWord sensitiveWordVo);

    /**
     * 获取文章下的评论
     * @param sensitiveWordVoExample
     * @param page
     * @param limit
     * @return SensitiveWord
     */
    PageInfo<SensitiveWord> getSensitiveWordsWithPage(SensitiveWordExample sensitiveWordVoExample, int page, int limit);


    /**
     * 根据主键查询评论
     * @param coid
     * @return
     */
    SensitiveWord getSensitiveWordById(Integer id);


    /**
     * 删除评论，暂时没用
     * @param coid
     * @param cid
     * @throws Exception
     */
    void delete(Integer id);

    /**
     * 更新评论状态
     * @param comments
     */
    void update(SensitiveWord sensitiveWord);

}
